<?php
// Create new service for PHP Remoting as Class
class GoDBHandler
{

	

    function GoDBHandler () 
    {
        // Define the methodTable for this class in the constructor
        $this->methodTable = array(
            "getUsers" => array(
                "description" => "Return a list of users",
                "access" => "remote"
            )
        );
    }

    function getCategory() {
        $mysql = mysql_connect("localhost", "GoRSS_DBUser", "Jolc)lp}#u.;o0" );
        
        mysql_select_db(GoRSS_DB);
        
        //return a list of all the users
        $Query = "SELECT * from gorss";
        $Result = mysql_query( $Query );
        while ($row = mysql_fetch_object($Result)) {
               $ArrayOfUsers[] = $row;
        }
        return( $ArrayOfUsers );
    }
}
?> 